/**
 * @Author: liu.yang 
 * @Date: 2018-05-17 11:46:47 
 * 
 * 用于存放全局变量
 * 比如 边框颜色 不同类型的字体颜色 大小
 */

@border-color: #ebedf0;

.baseBorder(@radius: 4px) {
  border: 1px solid @border-color;
  border-radius: @radius;
}

p {
  margin: 0;
}

a {
  color: #245BDB;
}

:global {
  .ant-table-tbody {
    color: rgba(0, 0, 0, 0.65);
  }

  .ant-table {
    tr,
    td {
      overflow: hidden;
      max-width: 180px;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
  }

  // .ant-menu.ant-menu-dark .ant-menu-item-selected {
  //   background-color: #245BDB;
  // }

  .ant-table-thead > tr > th.ant-table-column-sort {
    background: #fafafa;
  }

  .ant-btn {
    border-radius: 2px;
  }

  .ant-btn-primary {
    background-color: #245BDB;
    font-weight: 500;
  }

  .ant-input-search.ant-input-search-enter-button > .ant-input {
    border-radius: 2px;
  }

  textarea.ant-input {
    border-radius: 2px;
  }

  .ant-input {
    border-radius: 2px;
  }

  .ant-calendar-picker-input {
    padding-right: 28px;
    text-align: left;

    input[placeholder='开始日期'] {
      text-align: left !important;
    }

    input[placeholder='结束日期'] {
      text-align: right;
    }
  }

  .ant-select-selection {
    border-radius: 2px;
  }

  .ant-modal-footer .ant-btn {
    border-radius: 4px;
  }

  .ant-pagination-item-active {
    border-radius: 2px;
  }

  .ant-select-sm .ant-select-selection--single {
    border-radius: 2px;
  }

  .ant-table-thead > tr > th .anticon-filter {
    right: auto;
  }

  .starPrefix {
    &:before {
      display: inline-block;
      margin-right: 4px;
      color: #e65b4e;
      font-size: 14px;
      font-family: SimSun, sans-serif;
      line-height: 1;
      content: '*';
    }
  }
}

// 字色
@font-color-title: rgba(0, 0, 0, 0.85); // 标题
@font-color-base: rgba(0, 0, 0, 0.65); // 正文
@font-color-caption: rgba(0, 0, 0, 0.45); // 描述
@font-color-disable: rgba(0, 0, 0, 0.25); // 失效
